multiply of all elements in array in python